package com.hfut.manage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.Year;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("v_education")
public class Education implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("teacherId")
    private Integer teacherId;

    private String school;

    private String major;

    private Integer degree;
    @TableField("startYear")
    private LocalDate startYear;
    @TableField("endYear")
    private LocalDate endYear;


}
